home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / smiley / smiley.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1999-02-19  |  2.3 KB  |  79 lines

  1. // Smile.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (Smile.tlb) that will become a resource in
  5. // Smile.ocx.
  6.  
  7. #if defined(_WIN32_WCE) && (_WIN32_WCE < 200)
  8. #error "This sample can only be compiled for Windows CE 2.0 or later."
  9. #endif
  10.  
  11. #include <olectl.h>
  12.  
  13. [ uuid(C01FA300-B475-11d1-87E8-006097BA8D75), version(1.0),
  14.   helpstring("Smile OLE Custom Control module"), control ]
  15. library SMILELib
  16. {
  17.     importlib(STDOLE_TLB);
  18.     importlib(STDTYPE_TLB);
  19.  
  20.     //  Primary dispatch interface for CSmileCtrl
  21.  
  22.     [ uuid(C01FA301-B475-11d1-87E8-006097BA8D75),
  23.       helpstring("Dispatch interface for Smile Control"), hidden ]
  24.     dispinterface _DSmile
  25.     {
  26.         properties:
  27.             // NOTE - ClassWizard will maintain property information here.
  28.             //    Use extreme caution when editing this section.
  29.             //{{AFX_ODL_PROP(CSmileCtrl)
  30.             [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
  31.             [id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
  32.             [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
  33.             [id(DISPID_BORDERSTYLE), bindable, requestedit] short BorderStyle;
  34.             [id(1)] boolean Sad;
  35.             //}}AFX_ODL_PROP
  36.  
  37.         methods:
  38.             // NOTE - ClassWizard will maintain method information here.
  39.             //    Use extreme caution when editing this section.
  40.             //{{AFX_ODL_METHOD(CSmileCtrl)
  41.             [id(2)] void Beep();
  42.             [id(3)] void Wink(boolean bWink);
  43.             //}}AFX_ODL_METHOD
  44.  
  45.             [id(DISPID_ABOUTBOX)] void AboutBox();
  46.     };
  47.  
  48.     //  Event dispatch interface for CSmileCtrl
  49.  
  50.     [ uuid(C01FA302-B475-11d1-87E8-006097BA8D75),
  51.       helpstring("Event interface for Smile Control") ]
  52.     dispinterface _DSmileEvents
  53.     {
  54.         properties:
  55.             //  Event interface has no properties
  56.  
  57.         methods:
  58.             // NOTE - ClassWizard will maintain event information here.
  59.             //    Use extreme caution when editing this section.
  60.             //{{AFX_ODL_EVENT(CSmileCtrl)
  61.             [id(1)] void Outside();
  62.             [id(2)] void Inside(long x, long y);
  63.             //}}AFX_ODL_EVENT
  64.     };
  65.  
  66.     //  Class information for CSmileCtrl
  67.  
  68.     [ uuid(C01FA303-B475-11d1-87E8-006097BA8D75),
  69.       helpstring("Smile Control"), control ]
  70.     coclass Smile
  71.     {
  72.         [default] dispinterface _DSmile;
  73.         [default, source] dispinterface _DSmileEvents;
  74.     };
  75.  
  76.  
  77.     //{{AFX_APPEND_ODL}}
  78. };
  79.